package com.kfm.jdbc.day0404.thread;

public class ThreadDemo {

    public static void main(String[] args) {
        Ticket1 ticket = new Ticket1();

        // 创建三个线程对象
        Thread t1 = new Thread(ticket, "窗口1");
        Thread t2 = new Thread(ticket, "窗口2");
        Thread t3 = new Thread(ticket, "窗口3");

        // 启动线程
        t1.start();
        t2.start();
        t3.start();
    }


}
